home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Entertainment / MacMud / Mud 4.0 / lint.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-16  |  8.8 KB  |  256 lines  |  [TEXT/MPS ]

  1. /*
  2.  * Some structure forward declarations are needed.
  3.  */
  4. struct program;
  5. struct function;
  6. struct svalue;
  7. struct sockaddr;
  8.  
  9. #ifdef BUFSIZ
  10. #    define PROT_STDIO(x) PROT(x)
  11. #else /* BUFSIZ */
  12. #    define PROT_STDIO(x) ()
  13. #endif /* BUFSIZ */
  14.  
  15. #if defined(__STDC__) || defined(mac)
  16. #    define PROT(x) x
  17. #else /* __STDC__ */
  18. #    define PROT(x) ()
  19. #endif /* __STDC */
  20.  
  21. #ifndef MSDOS
  22.  
  23. char *malloc PROT((unsigned));
  24. char *realloc PROT((char *, unsigned));
  25. int fclose PROT_STDIO((FILE *));
  26. int pclose PROT_STDIO((FILE *));
  27. int atoi PROT((char *));
  28. void srandom PROT((int));
  29. int chdir PROT((char *));
  30. int gethostname PROT((char *, int));
  31. void abort PROT((void));
  32. int fflush PROT_STDIO((FILE *));
  33. int rmdir PROT((char *));
  34. int unlink PROT((char *));
  35. int fclose PROT_STDIO((FILE *));
  36. void qsort PROT((char *, int, int, int (*)()));
  37. int fseek PROT_STDIO((FILE *, long, int));
  38. int _flsbuf();
  39. int fork PROT((void));
  40. int wait PROT((int *));
  41. int execl PROT((char *, char *, ...));
  42. int pipe PROT((int *));
  43. int dup2 PROT((int, int));
  44. int vfork PROT((void));
  45. void free PROT((char *));
  46. void exit PROT((int));
  47. void _exit PROT((int));
  48. unsigned int alarm PROT((unsigned int));
  49. int ioctl(int, ...);
  50.  
  51. int _filbuf();
  52. char *crypt PROT((char *, char *));
  53.  
  54. #ifdef DRAND48
  55. double drand48 PROT((void));
  56. void srand48 PROT((long));
  57. #endif
  58. #ifdef RANDOM
  59. long random PROT((void));
  60. #endif
  61.  
  62. long strtol PROT((char *, char **, int));
  63. int link PROT((char *, char *));
  64. int unlink PROT((char *));
  65. #endif
  66.  
  67. struct object;
  68. char *get_error_file PROT((char *));
  69. void save_error PROT((char *, char *, int));
  70. #ifndef NLHACK
  71. int write_file PROT((char *, char *));
  72. #endif
  73. int file_size PROT((char *));
  74. char *check_file_name PROT((char *, int));
  75. void remove_all_players PROT((void));
  76. void load_wiz_file PROT((void));
  77. void wizlist PROT((char *));
  78. void backend PROT((void));
  79. char *xalloc PROT((int));
  80. char *xrealloc(char *p, unsigned int size);
  81. void init_string_space PROT((void));
  82. void error();
  83. void fatal();
  84. void add_message();
  85. void trace_log();
  86. void debug_message();
  87. void debug_message_value PROT((struct svalue *)),
  88.     print_local_commands(),
  89. #if 0
  90.     new_call_out PROT((struct object *, char *, int, struct svalue *)),
  91. #else
  92.     new_call_out PROT((struct object *, char *, int, struct svalue *, int)),
  93. #endif
  94.     add_action PROT((char *, char *, int)),
  95.     enable_commands PROT((int)),
  96.     load_ob_from_swap PROT((struct object *));
  97. #ifndef NLHACK
  98. int tail PROT((char *));
  99. #endif
  100. struct object *get_interactive_object PROT((int));
  101. void enter_object_hash PROT((struct object *));
  102. void remove_object_hash PROT((struct object *));
  103. struct object *lookup_object_hash PROT((char *));
  104. int show_otable_status PROT((int verbose));
  105. void dumpstat PROT((void));
  106. struct vector;
  107. void free_vector PROT((struct vector *));
  108. char *query_load_av PROT((void));
  109. void update_compile_av PROT((int));
  110. struct vector *map_array PROT((
  111.                    struct vector *arr,
  112.                    char *func,
  113.                    struct object *ob,
  114.                    struct svalue *extra
  115.                    ));
  116. struct vector *make_unique PROT((struct vector *arr,char *func,
  117.     struct svalue *skipnum));
  118.  
  119. char *describe_items PROT((struct svalue *arr,char *func,int live));
  120. struct vector *filter PROT((struct vector *arr,char *func,
  121.                 struct object *ob, struct svalue *)); 
  122. int match_string PROT((char *, char *));
  123. int set_heart_beat PROT((struct object *, int));
  124. struct object *get_empty_object PROT((int));
  125. struct svalue;
  126. void assign_svalue PROT((struct svalue *, struct svalue *));
  127. void assign_svalue_no_free PROT((struct svalue *to, struct svalue *from));
  128. void free_svalue PROT((struct svalue *));
  129. char *make_shared_string PROT((char *));
  130. void free_string PROT((char *));
  131. int add_string_status PROT((int verbose));
  132. void notify_no_command PROT((void));
  133. void clear_notify PROT((void));
  134. void throw_error PROT((void));
  135. void set_living_name PROT((struct object *,char *));
  136. void remove_living_name PROT((struct object *));
  137. struct object *find_living_object PROT((char *, int));
  138. int lookup_predef PROT((char *));
  139. void yyerror PROT((char *));
  140. int hashstr PROT((char *, int, int));
  141. int lookup_predef PROT((char *));
  142. char *dump_trace PROT((int));
  143. int parse_command PROT((char *, struct object *));
  144. struct svalue *apply PROT((char *, struct object *, int));
  145. void push_string PROT((char *, int));
  146. void push_number PROT((int));
  147. void push_object PROT((struct object *));
  148. struct object *clone_object PROT((char *));
  149. void init_num_args PROT((void));
  150. int restore_object PROT((struct object *, char *));
  151. void tell_object PROT((struct object *, char *));
  152. struct object *first_inventory PROT((struct svalue *));
  153. struct vector *slice_array PROT((struct vector *,int,int));
  154. int query_idle PROT((struct object *));
  155. char *implode_string PROT((struct vector *, char *));
  156. struct object *query_snoop PROT((struct object *));
  157. struct vector *all_inventory PROT((struct object *));
  158. struct vector *deep_inventory PROT((struct object *, int));
  159. struct object *environment PROT((struct svalue *));
  160. struct vector *add_array PROT((struct vector *, struct vector *));
  161. char *get_f_name PROT((int));
  162. #ifndef _AIX
  163. void startshutdowngame PROT((void));
  164. #else
  165. void startshutdowngame PROT((int));
  166. #endif
  167. void set_notify_fail_message PROT((char *));
  168. int swap PROT((struct object *));
  169. int transfer_object PROT((struct object *, struct object *));
  170. struct vector *users PROT((void));
  171. void do_write PROT((struct svalue *));
  172. void log_file PROT((char *, char *));
  173. int remove_call_out PROT((struct object *, char *));
  174. char *create_wizard PROT((char *, char *));
  175. void destruct_object PROT((struct svalue *));
  176. void set_snoop PROT((struct object *, struct object *));
  177. int new_set_snoop PROT((struct object *, struct object *));
  178. void add_verb PROT((char *, int));
  179. void ed_start PROT((char *, char *, struct object *));
  180. void say PROT((struct svalue *, struct vector *));
  181. void tell_room PROT((struct object *, struct svalue *, struct vector *));
  182. void shout_string PROT((char *));
  183. int command_for_object PROT((char *, struct object *));
  184. int remove_file PROT((char *));
  185. int print_file PROT((char *, int, int));
  186. int print_call_out_usage PROT((int verbose));
  187. int input_to PROT((char *, int));
  188. int parse PROT((char *, struct svalue *, char *, struct svalue *, int));
  189. struct object *object_present PROT((struct svalue *, struct object *));
  190. void add_light PROT((struct object *, int));
  191. int indent_program PROT((char *));
  192. void call_function PROT((struct program *, struct function *));
  193. void store_line_number_info PROT((void));
  194. void push_constant_string PROT((char *));
  195. void push_svalue PROT((struct svalue *));
  196. struct variable *find_status PROT((char *, int));
  197. void free_prog PROT((struct program *, int));
  198. void stat_living_objects PROT((void));
  199. int heart_beat_status PROT((int verbose));
  200. void opcdump PROT((void));
  201. void slow_shut_down PROT((int));
  202. struct vector *allocate_array PROT((int));
  203. void yyerror PROT((char *));
  204. void reset_machine PROT((int));
  205. void clear_state PROT((void));
  206. void load_first_objects PROT((void));
  207. void preload_objects PROT((int));
  208. int random_number PROT((int));
  209. void reset_object PROT((struct object *, int));
  210. int replace_interactive PROT((struct object *ob, struct object *obf, char *));
  211. char *get_wiz_name PROT((char *));
  212. char *get_log_file PROT((char *));
  213. int get_current_time PROT((void));
  214. char *time_string PROT((int));
  215. char *process_string PROT((char *));
  216. void update_ref_counts_for_players PROT((void));
  217. void count_ref_from_call_outs PROT((void));
  218. void check_a_lot_ref_counts PROT((struct program *));
  219. int shadow_catch_message PROT((struct object *ob, char *str));
  220. struct vector *get_all_call_outs PROT((void));
  221. char *read_file PROT((char *file, int, int));
  222. char *read_bytes PROT((char *file, int, int));
  223. int write_bytes PROT((char *file, int, char *str));
  224. struct wiz_list *add_name PROT((char *str));
  225. char *check_valid_path PROT((char *, struct wiz_list *, char *, int));
  226. int get_line_number_if_any PROT((void));
  227. void logon PROT((struct object *ob));
  228. struct svalue *apply_master_ob PROT((char *fun, int num_arg));
  229. void assert_master_ob_loaded();
  230. struct vector *explode_string PROT((char *str, char *del));
  231. char *string_copy PROT((char *));
  232. int find_call_out PROT((struct object *ob, char *fun));
  233. void remove_object_from_stack PROT((struct object *ob));
  234. void compile_file PROT((void));
  235. void unlink_swap_file();
  236. char *function_exists PROT((char *, struct object *));
  237. void set_inc_list PROT((struct svalue *sv));
  238. int legal_path PROT((char *path));
  239. struct vector *get_dir PROT((char *path));
  240. extern int rename PROT((char *, char *));
  241. void get_simul_efun PROT((struct svalue *));
  242. struct function *find_simul_efun PROT((char *));
  243. char *query_simul_efun_file_name PROT((void));
  244. struct vector *match_regexp PROT((struct vector *v, char *pattern));
  245.  
  246. #ifdef MUDWHO
  247. void sendmudwhoinfo PROT((void));
  248. void sendmudwhologout PROT((struct object *ob));
  249. int rwhocli_setup PROT((char *server, char *serverpw, char *myname,
  250.             char *comment));
  251. int rwhocli_shutdown PROT((void));
  252. int rwhocli_pingalive PROT((void));
  253. int rwhocli_userlogin PROT((char *uid, char *name, int tim));
  254. int rwhocli_userlogout PROT((char *uid));
  255. #endif /* MUDWHO */
  256.